<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.15"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>WB32L003 Standard Peripherals Firmware Library: wb32l003_basetim.h 文件参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">WB32L003 Standard Peripherals Firmware Library
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.15 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_6d2d5b60bd20db849a9486835a2715aa.html">Libraries</a></li><li class="navelem"><a class="el" href="dir_5ec8cccc32fa528457f3b4ed28e1a2cf.html">WB32L003_StdPeriph_Driver</a></li><li class="navelem"><a class="el" href="dir_cb9a941ec225bfb9bad4e8246158e282.html">inc</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#nested-classes">结构体</a> &#124;
<a href="#define-members">宏定义</a> &#124;
<a href="#func-members">函数</a>  </div>
  <div class="headertitle">
<div class="title">wb32l003_basetim.h 文件参考</div>  </div>
</div><!--header-->
<div class="contents">

<p>This file contains all the functions prototypes for the base TIM firmware library.  
<a href="#details">更多...</a></p>
<div class="textblock"><code>#include &quot;wb32l003.h&quot;</code><br />
</div>
<p><a href="wb32l003__basetim_8h_source.html">浏览源代码.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
结构体</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_base_tim___init_type_def.html">BaseTim_InitTypeDef</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">BaseTim Init structure definition  <a href="struct_base_tim___init_type_def.html#details">更多...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a>
宏定义</h2></td></tr>
<tr class="memitem:ga07d0dfc9296c429f27f7e29d49213424"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><b>IS_BaseTIM_ALL_PERIPH</b>(PERIPH)</td></tr>
<tr class="separator:ga07d0dfc9296c429f27f7e29d49213424"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gad3b85da3e4826ee996f5d0da26e1b9ef"><td class="memItemLeft" align="right" valign="top">
#define&#160;</td><td class="memItemRight" valign="bottom"><b>BaseTim_Gate_Enable</b>&#160;&#160;&#160;((uint32_t)0x01 &lt;&lt; 10)</td></tr>
<tr class="separator:gad3b85da3e4826ee996f5d0da26e1b9ef"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga6a20909993f49a16cee4c7197b0a7a8e"><td class="memItemLeft" align="right" valign="top">
#define&#160;</td><td class="memItemRight" valign="bottom"><b>BaseTim_Gate_Disable</b>&#160;&#160;&#160;((uint32_t)0x0)</td></tr>
<tr class="separator:ga6a20909993f49a16cee4c7197b0a7a8e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga6d5a34cab9ae87f5c028b409dd9caa82"><td class="memItemLeft" align="right" valign="top">
#define&#160;</td><td class="memItemRight" valign="bottom"><b>BaseTim_GatePolarity_Low</b>&#160;&#160;&#160;((uint32_t)0x01 &lt;&lt; 11)</td></tr>
<tr class="separator:ga6d5a34cab9ae87f5c028b409dd9caa82"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaa31e2a46295bcc00214cb23a8f75e4d9"><td class="memItemLeft" align="right" valign="top">
#define&#160;</td><td class="memItemRight" valign="bottom"><b>BaseTim_GatePolarity_High</b>&#160;&#160;&#160;((uint32_t)0x0)</td></tr>
<tr class="separator:gaa31e2a46295bcc00214cb23a8f75e4d9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga4d01cefef366a8d1ce1d6f88816cbdc1"><td class="memItemLeft" align="right" valign="top">
#define&#160;</td><td class="memItemRight" valign="bottom"><b>BaseTim_Tog_Enable</b>&#160;&#160;&#160;((uint32_t)0x01 &lt;&lt; 9)</td></tr>
<tr class="separator:ga4d01cefef366a8d1ce1d6f88816cbdc1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga358c397a7851a195001dae725965e50c"><td class="memItemLeft" align="right" valign="top">
#define&#160;</td><td class="memItemRight" valign="bottom"><b>BaseTim_Tog_Disable</b>&#160;&#160;&#160;((uint32_t)0x0)</td></tr>
<tr class="separator:ga358c397a7851a195001dae725965e50c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga371c140ef85a150184c801cf24e3255f"><td class="memItemLeft" align="right" valign="top">
#define&#160;</td><td class="memItemRight" valign="bottom"><b>BaseTim_Function_Count</b>&#160;&#160;&#160;((uint32_t)0x01 &lt;&lt; 8)</td></tr>
<tr class="separator:ga371c140ef85a150184c801cf24e3255f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga53f582325d91c7c7c8a3ff5e31a8545d"><td class="memItemLeft" align="right" valign="top">
#define&#160;</td><td class="memItemRight" valign="bottom"><b>BaseTim_Function_Timer</b>&#160;&#160;&#160;((uint32_t)0x0)</td></tr>
<tr class="separator:ga53f582325d91c7c7c8a3ff5e31a8545d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaeff2da521d9d3d336852eec8eb97b3f4"><td class="memItemLeft" align="right" valign="top">
#define&#160;</td><td class="memItemRight" valign="bottom"><b>BaseTim_AutoReload_Enable</b>&#160;&#160;&#160;((uint32_t)0x01 &lt;&lt; 6)</td></tr>
<tr class="separator:gaeff2da521d9d3d336852eec8eb97b3f4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gae5de16585f76b3b2b9d1a2599f046e0e"><td class="memItemLeft" align="right" valign="top">
#define&#160;</td><td class="memItemRight" valign="bottom"><b>BaseTim_AutoReload_Disable</b>&#160;&#160;&#160;((uint32_t)0x0)</td></tr>
<tr class="separator:gae5de16585f76b3b2b9d1a2599f046e0e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gad1be39e138cbd9502bcf8c2c7fb215ef"><td class="memItemLeft" align="right" valign="top">
#define&#160;</td><td class="memItemRight" valign="bottom"><b>BaseTim_CountLevel_32BIT</b>&#160;&#160;&#160;((uint32_t)0x01 &lt;&lt; 4)</td></tr>
<tr class="separator:gad1be39e138cbd9502bcf8c2c7fb215ef"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga4115e2b8b8e5c93f9f8076d5514f6990"><td class="memItemLeft" align="right" valign="top">
#define&#160;</td><td class="memItemRight" valign="bottom"><b>BaseTim_CountLevel_16BIT</b>&#160;&#160;&#160;((uint32_t)0x0)</td></tr>
<tr class="separator:ga4115e2b8b8e5c93f9f8076d5514f6990"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga9d0074280e3824958131f31cecd7783d"><td class="memItemLeft" align="right" valign="top">
#define&#160;</td><td class="memItemRight" valign="bottom"><b>BaseTim_CountMode_OneShot</b>&#160;&#160;&#160;((uint32_t)0x01 &lt;&lt; 3)</td></tr>
<tr class="separator:ga9d0074280e3824958131f31cecd7783d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga5fc743ebabfa6c95b15eada2e1b54c8a"><td class="memItemLeft" align="right" valign="top">
#define&#160;</td><td class="memItemRight" valign="bottom"><b>BaseTim_CountMode_Repeat</b>&#160;&#160;&#160;((uint32_t)0x0)</td></tr>
<tr class="separator:ga5fc743ebabfa6c95b15eada2e1b54c8a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaf7df83828558575779ef19c4627b5c9b"><td class="memItemLeft" align="right" valign="top">
#define&#160;</td><td class="memItemRight" valign="bottom"><b>BaseTim_Prescaler_DIV1</b>&#160;&#160;&#160;((uint32_t)0x00 &lt;&lt; 0)</td></tr>
<tr class="separator:gaf7df83828558575779ef19c4627b5c9b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga349ee06032354ede6779d6bf649efa17"><td class="memItemLeft" align="right" valign="top">
#define&#160;</td><td class="memItemRight" valign="bottom"><b>BaseTim_Prescaler_DIV2</b>&#160;&#160;&#160;((uint32_t)0x01 &lt;&lt; 0)</td></tr>
<tr class="separator:ga349ee06032354ede6779d6bf649efa17"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga3325824bb70523b25f10f43a5022bc91"><td class="memItemLeft" align="right" valign="top">
#define&#160;</td><td class="memItemRight" valign="bottom"><b>BaseTim_Prescaler_DIV4</b>&#160;&#160;&#160;((uint32_t)0x02 &lt;&lt; 0)</td></tr>
<tr class="separator:ga3325824bb70523b25f10f43a5022bc91"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gabb62d4407d87acfbe982dda11cfb6a7a"><td class="memItemLeft" align="right" valign="top">
#define&#160;</td><td class="memItemRight" valign="bottom"><b>BaseTim_Prescaler_DIV8</b>&#160;&#160;&#160;((uint32_t)0x03 &lt;&lt; 0)</td></tr>
<tr class="separator:gabb62d4407d87acfbe982dda11cfb6a7a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga26d66cb157490a6f2a6029222aa57fec"><td class="memItemLeft" align="right" valign="top">
#define&#160;</td><td class="memItemRight" valign="bottom"><b>BaseTim_Prescaler_DIV16</b>&#160;&#160;&#160;((uint32_t)0x04 &lt;&lt; 0)</td></tr>
<tr class="separator:ga26d66cb157490a6f2a6029222aa57fec"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaa8f9d7f5d3e1d7fd359b69ca914e4492"><td class="memItemLeft" align="right" valign="top">
#define&#160;</td><td class="memItemRight" valign="bottom"><b>BaseTim_Prescaler_DIV32</b>&#160;&#160;&#160;((uint32_t)0x05 &lt;&lt; 0)</td></tr>
<tr class="separator:gaa8f9d7f5d3e1d7fd359b69ca914e4492"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga4d5542834b413284a9dc2841881b6f91"><td class="memItemLeft" align="right" valign="top">
#define&#160;</td><td class="memItemRight" valign="bottom"><b>BaseTim_Prescaler_DIV64</b>&#160;&#160;&#160;((uint32_t)0x06 &lt;&lt; 0)</td></tr>
<tr class="separator:ga4d5542834b413284a9dc2841881b6f91"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga07b5f50c4923a54248405af981315742"><td class="memItemLeft" align="right" valign="top">
#define&#160;</td><td class="memItemRight" valign="bottom"><b>BaseTim_Prescaler_DIV128</b>&#160;&#160;&#160;((uint32_t)0x07 &lt;&lt; 0)</td></tr>
<tr class="separator:ga07b5f50c4923a54248405af981315742"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
函数</h2></td></tr>
<tr class="memitem:ga0f351e06d3d4b599d803f1a1bf63b10d"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___b_a_s_e_t_i_m.html#ga0f351e06d3d4b599d803f1a1bf63b10d">BaseTim_DeInit</a> (<a class="el" href="struct_b_a_s_e_t_i_m___type_def.html">BASETIM_TypeDef</a> *TIMx)</td></tr>
<tr class="memdesc:ga0f351e06d3d4b599d803f1a1bf63b10d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Deinitializes the TIMx peripheral registers to their default reset values.  <a href="group___b_a_s_e_t_i_m.html#ga0f351e06d3d4b599d803f1a1bf63b10d">更多...</a><br /></td></tr>
<tr class="separator:ga0f351e06d3d4b599d803f1a1bf63b10d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga8f987c85af7c2de1263d2bfb2f160795"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___b_a_s_e_t_i_m.html#ga8f987c85af7c2de1263d2bfb2f160795">BaseTim_Init</a> (<a class="el" href="struct_b_a_s_e_t_i_m___type_def.html">BASETIM_TypeDef</a> *TIMx, <a class="el" href="struct_base_tim___init_type_def.html">BaseTim_InitTypeDef</a> *BaseTim_InitStruct)</td></tr>
<tr class="memdesc:ga8f987c85af7c2de1263d2bfb2f160795"><td class="mdescLeft">&#160;</td><td class="mdescRight">Initializes the BaseTIMx Unit peripheral according to the specified parameters in the TIM_TimeBaseInitStruct.  <a href="group___b_a_s_e_t_i_m.html#ga8f987c85af7c2de1263d2bfb2f160795">更多...</a><br /></td></tr>
<tr class="separator:ga8f987c85af7c2de1263d2bfb2f160795"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga78b30902b7d2e34abc0e5a97e426fbfc"><td class="memItemLeft" align="right" valign="top">
void&#160;</td><td class="memItemRight" valign="bottom"><b>BaseTim_Cmd</b> (<a class="el" href="struct_b_a_s_e_t_i_m___type_def.html">BASETIM_TypeDef</a> *TIMx, FunctionalState NewState)</td></tr>
<tr class="separator:ga78b30902b7d2e34abc0e5a97e426fbfc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaa167cdd7b27459afb03f67d74ed6ec65"><td class="memItemLeft" align="right" valign="top">
void&#160;</td><td class="memItemRight" valign="bottom"><b>BaseTim_ITConfig</b> (<a class="el" href="struct_b_a_s_e_t_i_m___type_def.html">BASETIM_TypeDef</a> *TIMx, FunctionalState NewState)</td></tr>
<tr class="separator:gaa167cdd7b27459afb03f67d74ed6ec65"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga37b1e1cb7740e59378c919b3af6e7b6b"><td class="memItemLeft" align="right" valign="top">
uint32_t&#160;</td><td class="memItemRight" valign="bottom"><b>BaseTim_GetCounter</b> (<a class="el" href="struct_b_a_s_e_t_i_m___type_def.html">BASETIM_TypeDef</a> *TIMx)</td></tr>
<tr class="separator:ga37b1e1cb7740e59378c919b3af6e7b6b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaf68996bb575cc313dc5e5536e8babd15"><td class="memItemLeft" align="right" valign="top">
void&#160;</td><td class="memItemRight" valign="bottom"><b>BaseTim_SetLoad</b> (<a class="el" href="struct_b_a_s_e_t_i_m___type_def.html">BASETIM_TypeDef</a> *TIMx, uint16_t load)</td></tr>
<tr class="separator:gaf68996bb575cc313dc5e5536e8babd15"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga9cda67db440640594121751131134ae9"><td class="memItemLeft" align="right" valign="top">
void&#160;</td><td class="memItemRight" valign="bottom"><b>BaseTim_SetBkLoad</b> (<a class="el" href="struct_b_a_s_e_t_i_m___type_def.html">BASETIM_TypeDef</a> *TIMx, uint16_t bgLoad)</td></tr>
<tr class="separator:ga9cda67db440640594121751131134ae9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga7eeacf70d2370dddb8461b435e62ccdc"><td class="memItemLeft" align="right" valign="top">
FlagStatus&#160;</td><td class="memItemRight" valign="bottom"><b>BaseTim_GetFlagStatus</b> (<a class="el" href="struct_b_a_s_e_t_i_m___type_def.html">BASETIM_TypeDef</a> *TIMx)</td></tr>
<tr class="separator:ga7eeacf70d2370dddb8461b435e62ccdc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga5533972af0f534aba0341ec1a46245c5"><td class="memItemLeft" align="right" valign="top">
void&#160;</td><td class="memItemRight" valign="bottom"><b>BaseTim_ClearFlag</b> (<a class="el" href="struct_b_a_s_e_t_i_m___type_def.html">BASETIM_TypeDef</a> *TIMx)</td></tr>
<tr class="separator:ga5533972af0f534aba0341ec1a46245c5"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>This file contains all the functions prototypes for the base TIM firmware library. </p>
<dl class="section author"><dt>作者</dt><dd>WestberryTech Application Team </dd></dl>
<dl class="section version"><dt>版本</dt><dd>V0.0.3 </dd></dl>
<dl class="section date"><dt>日期</dt><dd>12-April-2023 </dd></dl>
</div></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by Westberry Technology (ChangZhou) Corp., Ltd. All rights reserved.
</small></address>
</body>
</html>
